package org.niux.aims.common.tag;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts2.components.Component;
import org.apache.struts2.views.jsp.ComponentTagSupport;

import com.opensymphony.xwork2.util.ValueStack;

/**
 * 
 * Copyright (c) 2009,niux<br>
 * All rights reserved.<br>
 * 
 * 文件名称：AuthTag.java<br>
 * 摘    要：权限组件标签类<br>
 * <br>
 * 当前版本：<br>
 * 作    者：铭显 Email: <a href="mailto:liangmingxian@gmail.com">liangmingxian@gmail.com</a><br>
 * 完成日期：@since 2013-10-25<br>
 * <br>
 * 取代版本：<br>
 * 原作者  ：<br>
 * 完成日期：@since Oct 22, 2009<br>
 */
public class AuthTag extends ComponentTagSupport {

	/**
	 * 
	 */
	private static final long serialVersionUID = -559852986163505382L;
	
	private String entityCode;

	@Override
	public Component getBean(ValueStack arg0, HttpServletRequest arg1,
			HttpServletResponse arg2) {
		return new AuthTagComponent(arg0,arg1);
	}
	
	@Override  
    protected void populateParams() {  
        super.populateParams();  
        AuthTagComponent pct = (AuthTagComponent) component;  
        pct.setEntityCode(entityCode);  
    }

	public String getEntityCode() {
		return entityCode;
	}

	public void setEntityCode(String entityCode) {
		this.entityCode = entityCode;
	}

}
